package com.yequan.file.io;

import java.io.*;

/**
 * @author yq
 * @date 2020/09/16
 */
public class FileIO {
    public static String pathname = "E:\\TEMP\\read.txt";

    public static void main(String[] args) throws IOException {
        fileReader();
    }

    private static void fileReader() throws IOException {
        FileReader fileReader = new FileReader(new File(pathname));
        BufferedReader bufferedReader = new BufferedReader(fileReader);
        String line = "";
        while ((line = bufferedReader.readLine()) != null) {
            System.out.println(line);
        }
    }

}
